package com.useeinfo.oa.modules.threadUtil.thread;

import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.maintaining.biz.MaintainTechnologyBiz;
import org.apache.poi.ss.usermodel.Workbook;

/**
 * @Auther: xudong.sun
 * @Date: 2019/2/13 10:22
 * @Description:
 */
public class MaintainTechnologyThread extends Thread{

    private MaintainTechnologyBiz maintainTechnologyBiz;
    private Workbook wb;
    private Enterprise enterprise;

    public MaintainTechnologyThread(MaintainTechnologyBiz maintainTechnologyBiz, Workbook wb, Enterprise enterprise) {
        this.maintainTechnologyBiz = maintainTechnologyBiz;
        this.wb = wb;
        this.enterprise = enterprise;
    }

    @Override
    public synchronized void run() {
        maintainTechnologyBiz.importTechnology(wb,enterprise);
    }
}
